package ex2.trans;

import ex2.PaymentClassification;
import ex2.classification.SalariedClassification;

public class AddSalariedEmployeeTransacation extends AddEmployeeTransaction {

    private double salary;

    public AddSalariedEmployeeTransacation(int empId, String name, String address, double salary) {
        super(empId, name, address);
        this.salary = salary;
    }

    protected PaymentClassification getPaymentClassification() {
        return new SalariedClassification(salary);
    }
}
